package com.base.cn.platform.os.entity.manage.subject;

import com.base.cn.platform.os.common.annotation.ImgAttr;
import com.base.cn.platform.os.common.mybatis.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 专业实体
 *
 * @author s.li
 * @create 2018-03-20 13:47
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysSubject extends BaseEntity {
    private static final long serialVersionUID = 4009609779102550697L;
    /**专业名*/
    private String subjectName;
    /**描述*/
    @ImgAttr
    private String depict;
    /**父级ID*/
    private BigDecimal parentId;
    //子级专业列表
    private List<SysSubject> childSubjectList;
    //推荐位置拼接字符串
    private String placeKeys;

    /**
     * status 状态，1正常，2禁用，3删除
     */
    //查询条件，专业ID串
    private String queryIds;
    //查询条件，父级ID串
    private String parentIds;
    //排除的ID串
    private String notIds;
    //查询条件，推荐位置
    private String placeKey;
    //专业下课程列表
    private List<Map<String,Object>> courseList;
    /**查询数量*/
    private  int count;
    /**排序*/
    private  Integer sort;
    /**单个子级专业*/
    private SysSubject child;

    /**parentIds 不为空时是否获取期子专业*/
    private  boolean isAllChild;
}
